package com.zxj.system.domain.question.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Getter
@Setter
@JsonInclude(JsonInclude.Include.NON_NULL)
public class QuestionDetailVO {

    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "问题ID")
    private Long questionId;

    @Schema(description = "问题标题")
    private String title;

    @Schema(description = "题目难度 1:简单 2：中等 3：困难")
    private Integer difficulty;

    @Schema(description = "时间限制")
    private Integer timeLimit;

    @Schema(description = "空间限制")
    private Integer spaceLimit;

    @Schema(description = "题目内容")
    private String content;

    @Schema(description = "题目用例")
    private String questionCase;

    @Schema(description = "默认代码块")
    private String defaultCode;

    @Schema(description = "main函数")
    private String mainFuc;
}
